-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(chat): show errors if there are issues when getting databases & collections to pick VSCODE-610 #864
Conversation
…de into gagik/add-test-filtering
…de into gagik/one-database-handling
…-js/vscode into gagik/no-database-or-collection-error
…abase-or-collection-error
…-collection-handling
src/participant/participant.ts
Outdated
log.error('No databases found'); | ||
if (databases === undefined) { | ||
stream.markdown( | ||
vscode.l10n.t('An error occurred when getting the databases.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we surface the error to users here? Something like permission issues is more transparent then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, not sure how to word it right. could something like "An error occurred while getting the databases. You may lack the necessary permissions.
work or we can be even more explicit?
Co-authored-by: Rhys <[email protected]>
…e-or-collection-error
…-collection-handling
…e-or-collection-error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Nice error handling ux improvements
Adds better handling of 0 collections/databases and errors to #863. Instead of silently quitting, it shows the error.
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes